
<!--/**-->
<!-- * Created by PhpStorm.-->
<!-- * User: Administrator-->
<!-- * Date: 2021/12/4-->
<!-- * Time: 19:25-->
<!-- */-->

<?php





//print_r($_FILES);
$old_file_name =  $_FILES['file']['name'];
$tempPath =  $_FILES['file']['tmp_name'];
move_uploaded_file($tempPath,'user/public/image/'.$old_file_name);

echo '上传成功';